<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd"
	xml:lang="en" >
	<head>
		<title>The DevilResponse has just begun to shine</title>
		
		<script type = "text/javascript" src = "../../ac/globalVariables.js"/>
		<script type = "text/javascript" src = "../../ac/catalogFunctions.js"/>
		<script type = "text/javascript" src = "../../ac/dataSourceFunctions.js"/>
		<script type = "text/javascript" src = "../../ac/dataFormatterFunctions.js"/>
		<script type = "text/javascript" src = "../../ac/mainFunctions.js"/>
		<script type = "text/javascript" src = "../../ac/postFunctions.js"/>
		<script type = "text/javascript" src = "../../ac/queryFunction.js"/>
		<script type = "text/javascript" src = "../../al/ResponseHandler.js"/>
		<script type = "text/javascript" src = "../../ac/appendinoFunctions.js"/>
		<script type = "text/javascript" src = "../../al/devilResponse.js"/>

	
		<script type = "text/javascript">
			//<![CDATA[
			
			function main(){
				
				ds[0] = new DataSource (crescentina);
				ds[1] = new DataSource (sDiIntDS);
				ds[2] = new DataSource (ferrazzDS);
				ds[3] = new DataSource (cataDS);
				
				curDF=0;
				df[curDF] = new DataFormatter (piadina);
				var RH=new ResponseHandler(4);

				dR = new devilResponse(null,isOK,helpMe,visa);		
				for (var i=0; i<ds.length; i++){
					ds[i].query("folksonomia[0]=PD",null, 
						function(hr){
							dR.addQueryResult(hr); 
						}, 
						function(hr){alert("DS query: errore " + hr.status);}
					);
				}
			}
			
			function isOK(hr){
				appendino(hr);
			}
			function visa(){
				dR.getPage(0);
			}
			function helpMe(hr){
				ser=new XMLSerializer();
				alert(ser.serializeToString(hr.responseXML));
			}
			
			//]]>
		</script>
	</head>
	<body onload="main()">
		<div id="cornice" />
	</body>
</html>